Action

public final class Action extends AsyncCallbackAction<R>

An action providing a response to the PromptCallback.

Constructors

Link copied to clipboard
public void PromptCallback.Action(Consumer<ShowPrompt.Response> consumer)

Functions

Link copied to clipboard
public void cancel()
Notifies the browser that the JavaScript prompt dialog should be canceled.
Link copied to clipboard
public final boolean isClosed()
Returns true if this action is closed.
Link copied to clipboard
public void ok(String text)
Notifies the browser that the JavaScript prompt dialog should be closed with the given text as a response.